/*
 * @Description: 应用管理接口
 * @Date: 2022-12-08 23:53:42
 * @Author: lizhiqiang
 */
import { ApplicationInfo } from "@/types/api";
import {get,post} from "@/utils/request";
/**
 * 删除应用信息
 * @param params 
 * @returns 
 */
export const DeleteApplicationInfo =(params:Array<string>)=>{
    return post("/cdwl-merchant/inner/applicationinfo/deleteBatch",params)
}
/**
 * 根据应用编码查询应用详情
 * @param appCode 
 * @returns 
 */
export const GetApplicationInfoByAppCode =(appCode:string)=>{
    return get(`/cdwl-merchant/inner/applicationinfo/getByAppCode/${appCode}`)
}
/**
 * 获取应用信息详情
 * @param id 
 * @returns 
 */
export const GetApplicationInfo =(id:string)=>{
    return get(`/cdwl-merchant/inner/applicationinfo/info/${id}`)
}
/**
 * 获取应用信息列表
 * @param params 
 * @returns 
 */
export const GetApplicationInfoList = (params:ApplicationInfo)=>{
    return post("/cdwl-merchant/inner/applicationinfo/list",params)
}
/**
 * 保存应用信息
 * @param params 
 * @returns 
 */
export const SaveApplicationInfo = (params:ApplicationInfo)=>{
    return post("/cdwl-merchant/inner/applicationinfo/save",params)
}
/**
 * 编辑应用信息
 * @param params 
 * @returns 
 */
export const UpdateApplicationInfo = (params:ApplicationInfo)=>{
    return post("/cdwl-merchant/inner/applicationinfo/update",params)
}
/**
 * 用户注销
 * @param id 
 * @returns 
 */
export const LogoutApplicationInfo = (id:string)=>{
    return post(`/cdwl-merchant/inner/applicationinfo/logout/${id}`)
}